/*
 * Copyright 2017 StreamSets Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

.configuration-tab {

  .panel-body {
    padding: @smallPadding * 3;
    overflow: auto;
  }

  .empty-value {
    display: inline-block;
    padding: 5px;
  }

  .tabs-content {
    //border-left: 1px solid #ddd;
    //border-right: 1px solid #ddd;
    //border-bottom: 1px solid #ddd;

    padding: @defaultPadding * 2 @defaultPadding;
    min-height: 300px;
  }

  .input-sm, .form-group-sm .form-control {
    position: relative;
    font-size: 14px;
  }

  input[type=checkbox] {
    margin-left: 0;
    margin-top: 9px;
  }

  .ui-select-multiple.ui-select-bootstrap {
    min-height: 30px;
  }

  .attribute-type {
    height: 24px;
  }

  .table {
    input[type=checkbox] {
      //margin-top: 0;
    }

    margin-bottom: @smallPadding;
  }

  .tooltip {
    width : 800px;
    z-index   : 1060;
  }

  .lane-label {
    float: right;
    padding-top: 4px;
  }

  .map-list-type {
    padding: @smallPadding 0;
    clear: both;
    //min-width: 500px;

    .lane-number {
      float: left;
      width: 40px;
    }

    .btn-group {
      min-width: 50px;
    }
  }

  .source-preview {
    pre {
      height: 500px;
      word-break: normal;
      word-wrap: normal;
    }
  }

  .field-selector-single-value {
    padding-left: @smallPadding * 3;
    padding-right: @smallPadding * 3;
  }

  .custom-field-property {
    min-width: 180px;

    &.output-lane {
      width: 50px;
    }
  }

  .output-lane-value {
    padding-top: 4px;
  }

  .custom-field-buttons {
    min-width: 100px;
  }

  .has-error {
    .help-block {
      .badge {
        background-color: #a94442;
      }
    }
  }

  .codemirror-fullscreen-tooltip {
    margin-top: 20px;
    opacity: 0.5;
    font-size: 12px;
  }

  .cron-gen-container {
    .tab-pane {
      p {
        visibility: hidden;
      }
    }
  }

  .confirm-check {
    color: @brand-success;
  }

  .cancel-x {
    color: @brand-danger;
  }

  .secret-file-configuration {
    .file-upload-mixin();
  }

  .show-advanced-button {
    .tooltip-wrapper {
      padding: 0;
      @media (min-width: 1092px) {
        text-align: right;
      }
      .btn[disabled] {
        /* don't let button block mouse events from reaching wrapper */
        pointer-events: none;
        cursor: not-allowed;
      }
    }
    .tooltip-wrapper.disabled {
      /* pointer-events setting above blocks cursor setting, so set it here */
      cursor: not-allowed;
    }
    .btn {
      padding-left: 14px;
      padding-right: 14px;
      i {
        padding-left: 5px;
      }
    }
  }
}

.field-selector-modal-body {
  height: 400px;
  overflow: auto;

  .loading-screen-display-box {
    left: 35%;
  }
}


.compact-density {
  .configuration-tab {
    input[type=checkbox] {
      margin-left: 0;
      margin-top: 5px;
    }
  }

  .map-list-type {
    padding: @smallPadding * 0.5 0;
  }

  .field-selector-btn {
    padding-top: @defaultPadding * 0.5;
  }
}


.pc100px {
  width: 95%;
  width: ~"calc(100% - 23px)";
}

.valOrParam {
  position: absolute;
  top: 0;
  right: 15px;
  z-index: 800;

  >i {
    color: silver;
    &:hover {
      color: black;
    }
  }
}
